#include "rtti.h"

namespace gecko
{

	//---------------------------------------------------------------------------------------------

	bool Rtti::IsDerivedFrom(const Rtti& rtti) const 
	{
		bool foundMatch = (this == &rtti);

		if ( !foundMatch && m_parentRtti )
		{
			foundMatch = m_parentRtti->IsDerivedFrom(rtti);
		}

		return foundMatch;
	}

	//---------------------------------------------------------------------------------------------

}
